// 搜索条件参数
export interface getFilesByPageOptions {
  page?: number;
  pageSize?: number;
  type?: string;
  fileName?: string;
  sort?: "asc" | "desc";
}

// 主文件映射
export interface rootMapType {
  html: string[];
  javascript: string[];
  markdown: string[];
  vue2: string[];
  vue3: string[];
  [key: string]: string[]; // 允许任意字符串键
}

// 文件信息处理
export interface allFilesNameAndPathItemType {
  path: string;
  base: string;
  ID: number | null;
  name: string;
  fileName: string;
  entirely: string;
  fileNameEntirely: string;
  type: string;
  isRoot: boolean;
  moduleToString: () => Promise<string>;
  module: () => Promise<any>;
}
